package com.atguigu.gmall.all.controller;

/**
 * @author sunjipu
 * @create 2020-04-17 9:08
 */

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户认证接口
 * </p>
 *
 */
@Controller
@RequestMapping
public class PassportController {


    /**
     *
     * @return
     */
    @GetMapping("login.html")
    public String login(HttpServletRequest request) {
        String originUrl = request.getParameter("originUrl");
        request.setAttribute("originUrl",originUrl);
        return "login";
    }

}
